package com.zmkj.taobao.taobaoorderservice.entity;

import lombok.Data;

import java.util.List;

@Data
public class Order {
    private Integer id;//编号
    private String orderNumber;//订单号
    private double orderMoney;//订单价格
    private String orderUserName;//下单人
    private List<Product> productList;

    public List<Product> getProductList() {
        return productList;
    }

    public void setProductList(List<Product> productList) {
        this.productList = productList;
    }

    public Order(){

    }
    /**
     * 带参
     * @param id
     * @param orderNumber
     * @param orderMoney
     * @param orderUserName
     */
    public Order(Integer id, String orderNumber, double orderMoney, String orderUserName) {
        this.id = id;
        this.orderNumber = orderNumber;
        this.orderMoney = orderMoney;
        this.orderUserName = orderUserName;
    }

}
